-- GENERATED SPELL FOR [Spawn of Fankriss] --


function spell0_15630(pUnit, Event) --@Berserk,Self--
pUnit:FullCastSpellOnTarget(26662,pUnit)
pUnit:RegisterEvent('Sorts_15630', 579, 1)
end

function Sorts_15630(pUnit, Event)
local choix_sorts_15630 = math.random(0, 0)
if choix_sorts_15630 == 0 then
pUnit:RegisterEvent('spell0_15630', 1, 1)
end
end

function mob15630_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15630', math.random(1500, 3000), 1)
end

function mob15630_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15630_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15630_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15630, 1, 'mob15630_Action')
RegisterUnitEvent(15630, 2, 'mob15630_Leave')
RegisterUnitEvent(15630, 3, 'mob15630_Kill')
RegisterUnitEvent(15630, 4, 'mob15630_Die')
